// 影片类
class Movie {
    private String movieId;
    private String title;
    private String director;
    private String genre;
    private int duration; // 分钟
    private double rating;
    private boolean isShowing;

    public Movie(String movieId, String title, String director, String genre, int duration, double rating) {
        this.movieId = movieId;
        this.title = title;
        this.director = director;
        this.genre = genre;
        this.duration = duration;
        this.rating = rating;
        this.isShowing = true;
    }

    // Getters and Setters
    public String getMovieId() {
        return movieId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public double getRating() {
        return rating;
    }

    public void setRating(double rating) {
        this.rating = rating;
    }

    public boolean isShowing() {
        return isShowing;
    }

    public void setShowing(boolean showing) {
        isShowing = showing;
    }
}
